package com.yupi.yuoj.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 游戏分类
 */
@TableName(value = "categories")
@Data
public class Category implements Serializable {

    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 唯一键，例如 fc / arcade / casual
     */
    @TableField("key")
    private String key;

    /**
     * 名称
     */
    @TableField("name")
    private String name;

    /**
     * 图标（emoji 或短码）
     */
    @TableField("icon")
    private String icon;

    @TableField("created_at")
    private Date createdAt;

    @TableField("updated_at")
    private Date updatedAt;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}

